package com.dcy.znoa.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_session")
public class OperSession {

    @TableId(type = IdType.AUTO, value = "session_id")
    private Long sessionId;

    @TableField("oper_id")
    private Long operId;

    @TableField("token")
    private String token;

    @TableField("start_time")
    private Date startTime;

    @TableField("last_access_time")
    private Date lastAccessTime;

    @TableField(exist = false)
    private Oper oper;

    @TableField("exit_time")
    private Date exitTime;
}
